import unittest
from HTMLTestRunner import HTMLTestRunner
from path import Path

PATH = Path().fp
test_path = PATH + r'TEST\Case'

test=unittest.defaultTestLoader.discover(test_path, pattern="Test*.py")
runner=HTMLTestRunner.HTMLTestRunner(
    stream=open(file='./中央理财系统测试.html', mode='w+', encoding='utf-8'),
    title='中央理财系统测试',   #标题
    verbosity=2,            #详细程度
    description='这需求谁写的？也太...是吧？'
)
runner.run(test)